<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.*,
						org.apache.commons.logging.Log, 
						org.apache.commons.logging.LogFactory,
						com.ophelisis.common.util.*,
						com.ophelisis.common.consts.*,
						com.ophelisis.common.consts.ConstCode.MenuGNB,
						com.ophelisis.actions.system.*"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="page" uri="/tld/xdp-page.tld"%>

<script>
$(document).ready(function() {
	if (checkUserAuth() < 2) {
		$("#formlist2l .ulMenu a").addClass("disable");
	}
});
</script>
<!-- List Start -->
<form id="searchForm" name="searchForm" method="post">
	<input type="hidden" id="authLevel" name="authLevel" value="" />
	<input type="hidden" id="menuId" name="menuId" value="" />
	<input type="hidden" id="menuAuth" name="menuAuth" value="" />
</form>
<div id="formtitle">
	<div id="formlist2l" class="flo_l">
		<table class="liststyle1">
			<colgroup>
				<col width="" />
			</colgroup>
			<tr>
				<th scope="col">권한 레벨</th>
			</tr>
		</table>
		<ul>
			<li id="authLevel5" class="ulMenu"><a href="#" onclick="javascript:pmModule.selectAuthLevel('5');">서브관리자</a></li>
			<li id="authLevel3" class="ulMenu"><a href="#" onclick="javascript:pmModule.selectAuthLevel('3');">일반관리자</a></li>
			<li id="authLevel1" class="ulMenu"><a href="#" onclick="javascript:pmModule.selectAuthLevel('1');">일반사용자</a></li>
		</ul>
	</div>
	<div id="formlist2c" class="flo_l">
		<table class="liststyle1">
			<colgroup>
				<col width="" />
			</colgroup>
			<tr>
				<th scope="col">메뉴</th>
			</tr>
		</table>
		<ul>
			<c:set var="tempGroupId" value="" />
			<c:choose>
				<c:when test="${menuList != '' && !empty menuList}">
					<c:forEach var="list" items="${menuList}" varStatus="status">
						<c:if test="${tempGroupId != list.menuGroupId}">
							<li class="ulMenu disable"><b>${list.menuGroupNm}</b></li>
							<c:set var="tempGroupId" value="${list.menuGroupId}" />
						</c:if>
						<li id="subMenu_${list.menuId}" class="ulSubMenu"><a href="#" onclick="javascript:pmModule.selectMenu(this, '${list.menuId}');" class="disable">${list.menuNm}</a></li>
					</c:forEach>
				</c:when>
			</c:choose>
		</ul>
	</div>
	<div id="formlist2r" class="flo_l">
		<table class="liststyle1">
			<colgroup>
				<col width="" />
			</colgroup>
			<tr>
				<th scope="col">메뉴 권한</th>
			</tr>
		</table>
		<ul>
			<li class="ulMenu disable"><input type="checkbox" id="modeRead" name="modeRead" onclick="pmModule.checkMode('read');" disabled="disabled" />&nbsp;읽기</li>
			<li class="ulMenu disable"><input type="checkbox" id="modeWrite" name="modeWrite" onclick="pmModule.checkMode('write');" disabled="disabled" />&nbsp;쓰기</li>
		</ul>
		<div id="ajaxDivResult"></div>
	</div>
</div>
<!-- List End -->
